// 这是通过appTool自动生成的rpcx代码，请勿修改
package serverRpcSev

import (
	"context"

	"gitee.com/kinwyb/appTools/examples/src/assembly"
	"gitee.com/kinwyb/appTools/examples/src/rpc/serverRpcObj"
	"gitee.com/kinwyb/appTools/examples/src/server"
)

func Add(reqCtx context.Context, arg *serverRpcObj.RpcxRequestAdd, resp *serverRpcObj.RpcxResponseAdd) error {
	ctx := assembly.NewRpcxContext("serverRpcSev.Add", reqCtx)
	defer ctx.Finish()
	resp.I, resp.Err = server.Add(arg.A, arg.B, ctx.Child())
	return nil
}
func Add2(reqCtx context.Context, arg *serverRpcObj.RpcxRequestAdd2, resp *serverRpcObj.RpcxResponseAdd2) error {
	ctx := assembly.NewRpcxContext("serverRpcSev.Add2", reqCtx)
	defer ctx.Finish()
	resp.I, resp.Err = server.Add2(arg.A, arg.B, ctx.Child())
	return nil
}
